{% extends "base.html" %}

{% block title %}电子书 {% endblock %}

{% block heading %}
<h1> book</h1>
<h2> List Records</h2>
{% endblock %}
{% block content %}
<div role="main" class="container listpage">
    <div class="row" id="listBox">
        <div class="ninecol">
            <div class="contentWrap">
            <div class="">
                <a href="{% url bookapp.views.create_book %}">添加</a>
            </div>
                <ul class="bookslist">
                    {% for item in list_items.object_list %}
                    <li><a href="{% url bookapp.views.view_book item.id %}" title="{{item.title}}"
                           class="showPage"><span class="thumb"><img
                            src="{{item.cover_img}}"/></span>
                        <span class="info" title="{% url bookapp.views.edit_book item.id %}">15</span></a>
                    </li>
                    {% endfor %}
                </ul>
                <div align="center">
                    {% if list_items.has_previous %}
                    <a href="?page={{ list_items.previous_page_number }}">Previous</a>
                    {% endif %}

<span class="current">
    Page {{ list_items.number }} of {{ list_items.paginator.num_pages }}.
</span>

                    {% if list_items.has_next %}
                    <a href="?page={{ list_items.next_page_number }}">Next</a>
                    {% endif %}

                </div>
            </div>
        </div>
        <div class="threecol last">
            <h3>书籍分类</h3>
            <ul class="categoryList">
                <li><a href="/animals-related/">Animals related</a></li>
                <li><a href="/architecture/">Architecture</a></li>
                <li><a href="/artbooks/">Artbooks</a></li>
                <li><a href="/biographies/">Biographies</a></li>
                <li><a href="/business-job/">Business &amp; Job</a></li>
                <li><a href="/cooking-diets/">Cooking &amp; Diets</a></li>
                <li><a href="/cultures-languages/">Cultures &amp; Languages</a></li>
                <li><a href="/development-programming/">Development &amp; Programming</a></li>
                <li><a href="/economics-finances/">Economics &amp; finances</a></li>
                <li><a href="/encyclopedia-dictionary/">Encyclopedia &amp; dictionary</a></li>
                <li><a href="/engineering-technology/">Engineering &amp; Technology</a></li>
                <li><a href="/gambling/">Gambling</a></li>
                <li><a href="/games-related/">Games related</a></li>
                <li><a href="/hardware/">Hardware</a></li>
                <li><a href="/history-military/">History &amp; Military</a></li>
                <li><a href="/martial-arts/">Martial Arts</a></li>
                <li><a href="/music-related/">Music related</a></li>
                <li><a href="/novels/">Novels</a></li>
                <li><a href="/others/">Others</a></li>
                <li><a href="/painting-design/">Painting &amp; Design</a></li>
                <li><a href="/personality/">Personality</a></li>
                <li><a href="/photo-related/">Photo related</a></li>
                <li><a href="/politics-sociology/">Politics &amp; Sociology</a></li>
                <li><a href="/religion-related/">Religion related</a></li>
                <li><a href="/science/">Science</a></li>
                <li><a href="/security-related/">Security related</a></li>
                <li><a href="/software-related/">Software related</a></li>
                <li><a href="/sports/">Sports</a></li>
                <li><a href="/travel-guides/">Travel Guides</a></li>
                <li><a href="/epub-ebooks/">ePub ebooks</a></li>
            </ul>
        </div>
    </div>
</div>
{% endblock %}